<%@ page import="com.opeace.PersonProgram" %>



<div class="fieldcontain ${hasErrors(bean: personProgramInstance, field: 'dateJoined', 'error')} required">
	<label for="dateJoined">
		<g:message code="personProgram.dateJoined.label" default="Date Joined" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="dateJoined" precision="day"  value="${personProgramInstance?.dateJoined}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: personProgramInstance, field: 'person', 'error')} required">
	<label for="person">
		<g:message code="personProgram.person.label" default="Person" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="person" name="person.id" from="${com.opeace.Person.list()}" optionKey="id" optionValue="${{it.firstName + ' '+ it.lastName}}" required="" value="${personProgramInstance?.person?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: personProgramInstance, field: 'program', 'error')} required">
	<label for="program">
		<g:message code="personProgram.program.label" default="Program" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="program" name="program.id" from="${com.opeace.Program.list()}" optionKey="id" optionValue="name" required="" value="${personProgramInstance?.program?.id}" class="many-to-one"/>
</div>

